package com.dgut.uhrs.mapper;

import com.dgut.uhrs.bean.Key;
import com.dgut.uhrs.bean.Record;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RecordMapper {
    Boolean addRecord(Record record);
    List<Record> showAllRecord(Key key);
    Record findRecordByUserIdAndDate(String userId, String date);
    List<Record> findTodayRecord(Key key);
    List<Record> findAbnormal(Key key);
    List<Record> findTodayAbnormal(Key key);
    List<Record> findTodayAbnormalWithOnePage(String date);
    Integer countOfRecord();
    Integer countOfAbnormalRecord();
    Integer countOfTodayRecord(Key key);
    Integer countOfTodayAbnormalRecord(Key key);
    Integer updateRecord(Key key);

    void deleteRecord(Key key);
}
